package com.mcxx.modules.miniSalvation.check.dao.write;

import com.mcxx.modules.miniSalvation.check.entity.CheckEntity;
import org.apache.ibatis.annotations.Param;

import java.lang.annotation.Documented;
import java.util.List;
import java.util.Map;


public interface CheckWriteDao{

	int insert(CheckEntity check);


	int insertIgnoreNull(CheckEntity check);


	int inserts(List<CheckEntity> check);


	int update(CheckEntity orderCheck);


	int updateStatus(String [] ids ,String status);


	int updateIgnoreNull(CheckEntity orderCheck);


	int delete(CheckEntity orderCheck);

	int deleteIds(String areaCode,String [] ids,String []status);

	int deleteEntity(CheckEntity orderCheck);

	int deleteBatch(String  batchNo);


	int updateCheckState(List<String> checkIdCardList, String checkState);

	int updateCheckFileBatch(List<CheckEntity> list);

	int updateCheckStateBatch(List<CheckEntity> list);

	int updateCheckMsgBatch (List<CheckEntity> list);

	int updateCheckStateByEntity(CheckEntity entity);

	int updateCheckByCheckId(CheckEntity entity);

	int updateCheckStateById(@Param("list")List<String> list,@Param("exceptionMsg")String exceptionMsg,@Param("checkState")String checkState);

	int updateCheckStateByBatchNo(@Param("batchNo")String batchNo,@Param("idsList")List<String> idsList,@Param("exceptionMsg")String exceptionMsg,@Param("checkState") String checkState);


	@Deprecated
	int updateCheckComplete(String orderId);

	int deleteByOrderId(String orderId);


	int copyCheckInfo(@Param("orderId") String orderId,@Param("newOrderId")String newOrderId);

	int conferIntegratList(List<String> list);
}
